/**
 * 
 */
package com.yishuki.bluewhale.db.access;

import name.yzhu.database.DataBaseException;
import name.yzhu.database.IDbUtil;

/**
 * Class AbstractDBOpr is the root of the DB operation class
 * @author yhzhu
 *
 */
public abstract class AbstractDBOpr {
	protected IDbUtil db = null;
	
	public AbstractDBOpr(IDbUtil db) {
		this.db = db;
	}

	public IDbUtil getDb() {
		return db;
	}

	public void setDb(IDbUtil db) {
		this.db = db;
	}
	/**
	 * committed to db
	 * @throws DataBaseException
	 */
	public void flush() throws DataBaseException{
		db.flush();
	}
}
